package jinyilw.swing.visuals;

import javax.swing.JScrollPane;
import javax.swing.JTextArea;

public class ImageTextArea extends JTextArea // 背景文字区
{
	private static final long serialVersionUID = -3484778264175203809L;
	private JScrollPane scrollPane = null;

	public ImageTextArea()
	{
		setLineWrap(true);
	}

	public JScrollPane getScrollPane()
	{
		if (scrollPane == null)
		{
			scrollPane = new JScrollPane();
			scrollPane.setViewportView(this);
		}
		return scrollPane;
	}
}
